package br.com.drerp.financeiro.service;

public class FinanceiroServiceImplProxy implements br.com.drerp.financeiro.service.FinanceiroServiceImpl {
  private String _endpoint = null;
  private br.com.drerp.financeiro.service.FinanceiroServiceImpl financeiroServiceImpl = null;
  
  public FinanceiroServiceImplProxy() {
    _initFinanceiroServiceImplProxy();
  }
  
  public FinanceiroServiceImplProxy(String endpoint) {
    _endpoint = endpoint;
    _initFinanceiroServiceImplProxy();
  }
  
  private void _initFinanceiroServiceImplProxy() {
    try {
      financeiroServiceImpl = (new br.com.drerp.financeiro.service.FinanceiroServiceImplServiceLocator()).getFinanceiroServiceImplPort();
      if (financeiroServiceImpl != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)financeiroServiceImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)financeiroServiceImpl)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (financeiroServiceImpl != null)
      ((javax.xml.rpc.Stub)financeiroServiceImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public br.com.drerp.financeiro.service.FinanceiroServiceImpl getFinanceiroServiceImpl() {
    if (financeiroServiceImpl == null)
      _initFinanceiroServiceImplProxy();
    return financeiroServiceImpl;
  }
  
  public br.com.drerp.financeiro.service.PlanoSaude[] listarPlanosSaude() throws java.rmi.RemoteException{
    if (financeiroServiceImpl == null)
      _initFinanceiroServiceImplProxy();
    return financeiroServiceImpl.listarPlanosSaude();
  }
  
  public java.lang.Boolean pagarProduto(java.math.BigDecimal arg0, br.com.drerp.financeiro.service.Beneficiario arg1) throws java.rmi.RemoteException{
    if (financeiroServiceImpl == null)
      _initFinanceiroServiceImplProxy();
    return financeiroServiceImpl.pagarProduto(arg0, arg1);
  }
  
  public java.lang.Boolean registrarEmpresa(br.com.drerp.financeiro.service.Beneficiario arg0) throws java.rmi.RemoteException{
    if (financeiroServiceImpl == null)
      _initFinanceiroServiceImplProxy();
    return financeiroServiceImpl.registrarEmpresa(arg0);
  }
  
  public br.com.drerp.financeiro.service.Beneficiario[] listarEmpresas() throws java.rmi.RemoteException{
    if (financeiroServiceImpl == null)
      _initFinanceiroServiceImplProxy();
    return financeiroServiceImpl.listarEmpresas();
  }
  
  public java.lang.Boolean pagarConsultaPlanoSaude(br.com.drerp.financeiro.service.PlanoSaude arg0, br.com.drerp.financeiro.service.Procedimento[] arg1) throws java.rmi.RemoteException{
    if (financeiroServiceImpl == null)
      _initFinanceiroServiceImplProxy();
    return financeiroServiceImpl.pagarConsultaPlanoSaude(arg0, arg1);
  }
  
  public br.com.drerp.financeiro.service.Imposto[] pagarSalario(java.math.BigDecimal arg0, br.com.drerp.financeiro.service.Beneficiario arg1) throws java.rmi.RemoteException{
    if (financeiroServiceImpl == null)
      _initFinanceiroServiceImplProxy();
    return financeiroServiceImpl.pagarSalario(arg0, arg1);
  }
  
  public br.com.drerp.financeiro.service.NotaFiscal pagarConsultaParticular(br.com.drerp.financeiro.service.Pagador arg0, br.com.drerp.financeiro.service.Procedimento[] arg1) throws java.rmi.RemoteException{
    if (financeiroServiceImpl == null)
      _initFinanceiroServiceImplProxy();
    return financeiroServiceImpl.pagarConsultaParticular(arg0, arg1);
  }
  
  public br.com.drerp.financeiro.service.Procedimento[] listarProcedimentos() throws java.rmi.RemoteException{
    if (financeiroServiceImpl == null)
      _initFinanceiroServiceImplProxy();
    return financeiroServiceImpl.listarProcedimentos();
  }
  
  
}